//
//  CarResourceModel.h
//  Shuaiche
//
//  Created by zzs on 2017/10/19.
//  Copyright © 2017年 zzs. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>

@class CarPicModel;
@interface CarResourceModel : NSObject

@property (nonatomic, strong) NSNumber *carResourceId;//车源ID
@property (nonatomic, strong) NSNumber *carId;
@property (nonatomic, strong) NSNumber *goodsId;//收藏ID
@property (nonatomic, copy) NSString *imageUrl;//车辆图片展示
@property (nonatomic, copy) NSString *descriptionInfo;// 描述
@property (nonatomic, assign) int brand;//品牌ID
@property (nonatomic, copy) NSString *brandName;
@property (nonatomic, assign) int series;//车系ID
@property (nonatomic, assign) int species;//款式
@property (nonatomic, copy) NSString  *carName; //车辆名称 品牌 车系 款式
@property (nonatomic, assign) NSInteger supplierId; //供应商id
@property (nonatomic, assign) int amount; //车源数量 -1为充足
@property (nonatomic, strong) NSNumber* guidePrice; //指导价 单位：元
@property (nonatomic, strong) NSNumber* purchasePrice; //采购价 单位：元
@property (nonatomic, assign) UInt8 boardDeliver; //是否支持整板批发 0:否,1:是
@property (nonatomic, assign) UInt8 singleDeliver; //是否支持单发 0:否,1:是
@property (nonatomic, assign) int boardDiscount; //折扣数*100，如8.5折记为850
@property (nonatomic, strong) NSNumber* boardPrice;//整板批发价 单位：元
@property (nonatomic, strong) NSNumber* singleDiscount; //折扣数*100，如8.5折记为850
@property (nonatomic, strong) NSNumber * singlePrice; //单台批发价 单位：元
@property (nonatomic, copy) NSString *produceDate; //生产日期
@property (nonatomic, strong) NSNumber* gearboxType; //变速箱类型 见附件枚举
@property (nonatomic, copy) NSString *carRank; //车型级别 见附件枚举
@property (nonatomic, strong) NSNumber * bodyStyle; //车身类型 见附件枚举
@property (nonatomic, copy) NSString *bodySize; //长*宽*高
@property (nonatomic, assign) CGFloat displacement; //发动机排量 单位：L
@property (nonatomic, strong) NSNumber *turbo; //是否涡轮增加 0:否,1:是
@property (nonatomic, strong) NSNumber *energyType; //能源类型 见下文枚举
@property (nonatomic, strong) NSNumber *outerColor;//外观颜色
@property (nonatomic, strong) NSNumber *innerColor;//内饰颜色
@property (nonatomic, copy) NSArray *color; //车辆颜色用json数组字符串存，字段为innerColor和outerColor
@property (nonatomic, strong) NSNumber * driveType;//驱动方式 见附件枚举
@property (nonatomic, strong) NSNumber* fuelConsumption; //油耗 单位：L
@property (nonatomic, strong) NSNumber * emissionStd;//排放标准

@property (nonatomic, strong) NSNumber * deliveryStatus; //提货状态 0:未提货,1:提货中,2：已部分提货,3:已全部提货
@property (nonatomic, strong) NSNumber * recommend; //推荐状态 0:一般,1:热销,2:置顶
@property (nonatomic, assign) int departureProvinc;//发货省id
@property (nonatomic, assign) int departureCity; //发货市id
@property (nonatomic, copy) NSString *deliverDate; //发货时间
@property (nonatomic, strong) NSArray <CarPicModel *>*carPics; //车辆图片组
@property (nonatomic, strong) NSArray <CarPicModel *>*display;//车辆特色图片组
@property (nonatomic, strong) NSArray <CarPicModel *>*carMainPic;//主图
@property (nonatomic, copy) NSString *mainPic;
@property (nonatomic, copy) NSString *mainPic_r;//之前的服务器用过这个字段，
@property (nonatomic, copy) NSString *createTime; //创建时间
@property (nonatomic, copy) NSString *createPerson; //创建人
@property (nonatomic, copy) NSString *updateTime; //更新时间
@property (nonatomic, copy) NSString *updatePerson;//更新人
@property (nonatomic, copy) NSString *speciesName;
@property (nonatomic, copy) NSString *seriesName;
@property (nonatomic, copy) NSString *showDiscount;
@property (nonatomic, assign) BOOL boardPostageFree;
@property (nonatomic, assign) BOOL singlePostageFree;
@property (nonatomic, copy) NSString *detectionReportUrl;  //检测报告url
@property (nonatomic, strong) NSArray *detectionReportPics; //检测报告 图片
@property (nonatomic, copy) NSString *detectionReportPdf;  //检测报告pdf

/*********************************二期更新********************/
@property (nonatomic, assign) NSInteger carType;//车辆类型 1 新车  2二手车
@property (nonatomic, assign) int32_t merchantId;//添加人所属商户id
@property (nonatomic, strong) NSNumber* storeStatus;
@property (nonatomic, strong) NSNumber* saleStatus; //销售状态 1:预售,2:在售,3:缺货,4:售罄,5:下架
@property (nonatomic, strong) NSNumber* mileage; //里程数
@property (nonatomic, strong) NSNumber* unionFloorPrice;//联盟底价
@property (nonatomic, strong) NSNumber *transferTimes;//过手次数
@property (nonatomic, copy) NSString *vcode;//车架号
@property (nonatomic, copy) NSString *ecode;//发动机号
@property (nonatomic, copy) NSString *features;//车辆配置
@property (nonatomic, copy) NSString *carCondition;//车辆描述
@property (nonatomic, strong) NSNumber* invoicePrice;//发票价
@property (nonatomic, strong) NSNumber * purchaser;//收购员
@property (nonatomic, copy) NSString *purchaseDate;//收购日期
@property (nonatomic, strong) NSNumber* saleFloorPrice;//销售底价
@property (nonatomic, strong) NSNumber * useNature;//使用性质
@property (nonatomic, copy) NSString *annualInspectionDate;//年检到期
@property (nonatomic, copy) NSString *insuranceDate;//交强险到期
@property (nonatomic, copy) NSString *productionDate;
@property (nonatomic, strong) NSNumber* keyNum;
@property (nonatomic, strong) NSNumber* markedPrice;
@property (nonatomic, copy) NSString *address;
@property (nonatomic, copy) NSString *registerDate;
@property (nonatomic, copy) NSString *merchantName;
@property (nonatomic, strong) NSNumber * joinUnion;//是否发布到联盟
@property (nonatomic, strong) NSNumber *joinScBrand;//是否发布到品牌
@property (nonatomic, copy) NSString *merchantPhone;
@property (nonatomic, copy) NSString *tradeDate;
@property (nonatomic, strong) NSNumber * tradePrice;
@property (nonatomic, assign) NSInteger carProvince;
@property (nonatomic, assign) NSInteger carCity;
@property (nonatomic, copy) NSString *sellerName;
@property (nonatomic, copy) NSString *buyerName;
@property (nonatomic, copy) NSString *provinceName;
@property (nonatomic, copy) NSString *cityName;
@property (nonatomic, copy) NSString *districtName;
@property (nonatomic, copy) NSString *plateNumber;
@property (nonatomic, strong) NSNumber* wholesalePrice;
@property (nonatomic, strong) NSNumber* cooperationPrice;
@property (nonatomic, strong) NSNumber* retailPrice;
@property (nonatomic, strong) NSNumber* mortgageUnionFloorPrice;
@property (nonatomic, strong) NSNumber* advicePrice;
@property (nonatomic, assign) BOOL isSCCar;//帅车自营
@property (nonatomic, copy) NSString *merchantAbbreviation;
@property (nonatomic, copy) NSString *merchantLogoPic;
@property (nonatomic, copy)  NSString *storeCode;
@property (nonatomic, strong) NSNumber *isOnSales;
@property (nonatomic, strong) NSNumber *onSalesPrice;
@property (nonatomic, copy) NSString *onSalesContacts;
@property (nonatomic, copy) NSString *onSalesPhone;
@property (nonatomic, strong) NSNumber *isRegister;
@property (nonatomic, strong) NSNumber *downPayment;
@property (nonatomic, strong) NSNumber *finalPayment;
@property (nonatomic, copy) NSString *faultDescribe;
@property (nonatomic, strong) NSNumber *isPrepareCar;
@property (nonatomic, strong) NSNumber *prepareStatus;
@property (nonatomic, strong) NSNumber *prepareTotalCost;
@property (nonatomic, copy) NSString *predictFinishTime;
@property (nonatomic, copy) NSString *prepareBeginTime;
@property (nonatomic, copy) NSString *finishTime;
@property (nonatomic, assign) BOOL carStoreFlag;
//@property (nonatomic, strong) PrepareItemModel *prepareItemProdRO;
//@property (nonatomic, strong) SCMaintenanceModel *maintenanceRecord;
@property (nonatomic, copy) NSString *maintenanceId;

@property (nonatomic, strong) NSNumber *commission;

@property (nonatomic, assign) BOOL isSigned;
@property (nonatomic, assign) CarOption option;
@property (nonatomic, assign) BOOL joinStockCleaner;
@property (nonatomic, assign) BOOL isLocked;
@property (nonatomic, copy) NSString *payPlan; // 金融方案
@property (nonatomic, strong) NSArray *unionIds;
@property (nonatomic, strong) NSArray *brokerUids;
@property (nonatomic, copy) NSString *unionPics;
@property (nonatomic, copy) NSString *innerNo;
@property(nonatomic, assign) BOOL isOfficial;
@property(nonatomic, assign) int saleChannel;   // 售出渠道，null:未售 1：手动出库售出,2:订单自动售出

@property (nonatomic, copy) NSString *carMainPicPath;
@property (nonatomic, assign) NSInteger listUnionId;

// 收购
@property (nonatomic, copy) NSString *purchaseRemark;
@property (nonatomic, assign) NSInteger purchaseType;   // 收购性质 1全款 2合作 3寄售

// 金融方案
@property (nonatomic, copy) NSDictionary *carFinancePlan;//金融方案对象

@end

